package com.knowswift.common.bean.issue.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class MonitorDeviceVO {
    private String deviceId;
    private String moduleName;
    private String projectName;
    private String areaName;
    private String serialNumber;
    private Integer battery;
    private Integer voltage;
    private Integer electric;
    private Integer humidity;
    private Integer temperature;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime activateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastMessageTime;
    private Integer deviceStatus;
    private boolean online;
    private Double latitude;
    private Double longitude;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> images;
    private Boolean acceptPosition;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonIgnore
    private LocalDateTime updateTime;

    private Boolean isElectric;
    private Boolean isEdit;
    private Integer monitorInterval;
}
